package chap09.Animal;

public class Cow extends Animal
        {

            public Cow(String name, int id)
        {
            super(name, id);
        }
            @Override
            public void eat() {
                System.out.println("编号" + id + "姓名" + name + "正在吃草");

            }

            @Override
            public void sleep() {
                System.out.println("编号" + id + "姓名" + name + "正在睡觉");
            }

            @Override
            public void introduction() {
                System.out.println("编号" + id + "姓名" + name + "是一头牛");
            }
        }
